how to properly install tailwind css in react

68

npm install tailwindcss
@import "tailwindcss/base";

@import "tailwindcss/components";

@import "tailwindcss/utilities";
npm install tailwindcss postcss-cli [email protected] -D
const tailwindcss = require('tailwindcss');
module.exports = {
    plugins: [
        tailwindcss('./tailwind.js'),
        require('autoprefixer')
    ],
};

Comments

Submit
0 Comments